// agent-ui/src/api/reviews/reviewsApi.js

import axios from 'axios';

const reviewsApi = {
    // 获取热门评论
    getHotComments(limit = 10) {
        return axios.get(`http://localhost:9527/comments/hot?limit=${limit}`);
    },

    // 获取热门电影
    getHotMovies(limit = 10) {
        return axios.get(`http://localhost:9527/movies/hot?limit=${limit}`);
    },

    // 获取影评统计数据
    getReviewStats() {
        return axios.get('http://localhost:9527/movies/stats');
    }
};

export default reviewsApi; 